package fivm.cross.platform.ficommon.distinguish.droid;

import java.lang.reflect.ParameterizedType;

import com.fi.common.file.FileTool;
import com.fi.common.log.FiLog;

import fivm.cross.platform.ficommon.HttpStandardMsg.HTTPPayloadResp;
import fivm.cross.platform.steamobj.base.FiBaseSerializableFromStream;
import fivm.cross.platform.steamobj.base.FiBaseSerializableToStream;


public abstract class SerializableStream
		extends FiDroidSerializableFromStream
		implements FiBaseSerializableToStream {

	
	public void toFile(String path){
		FileTool.writeFile(path, toString(),false);
	}

	public void toHttp(String urlPath) {
		//发包
		FiDroidSerializableFromStream.toHttp(urlPath, this);
	}
	
	public void toLog(){
		FiLog.appLogV("SerializableStream", "get the class  : \n"+this.getClass().getSimpleName()+"..........\n"+toJson());
	}
	
}
